package com.bw.demo_mvi

import com.bw.demo_mvi.http.VideoEntity

/**
 * @Author : ZhouZiYao
 * @Time : On 2023/11/16 14:53
 * @Description : MainUIState ui状态
 */
sealed class MainUIState{

    //加载中
    object Loading: MainUIState()
    //成功 有数据
    data class Success(val data: MutableList<VideoEntity>): MainUIState()
    //失败
    data class Error(val error: String): MainUIState()

}
